<?php

/**
 * Class Core_Filter_Boolean
 *
 * @package Core
 */
class Core_Filter_Boolean implements Core_Filter_Interface {
    public function execute($data) {
        if ($data === true || $data === 1 || $data === '1' || strtolower($data) == 'on' || strtolower($data) == 'true') {
            return true;
        }
        return false;
    }
}